﻿Ext.define('GS.view.user.Login', {
    extend: 'Ext.form.FormPanel',
    xtype: 'userlogin',

    config: {

        title: 'Lektie-App',
        iconCls: 'star',
        //id: 'loginForm',

        items: [
        {
            xtype: 'titlebar',
            title: 'Lektie-App',
            docked: 'top'
        },
        {
            xtype: 'emailfield',
            name: 'email',
            //label: 'E-mail',
            placeHolder: 'E-mail',
            required: true,
            clearIcon: true,
            margin: '10 0 10 0'
        },
        {
            xtype: 'passwordfield',
            name: 'password',
            //label: 'Kodeord',
            placeHolder: 'Kodeord',
            required: true,
            clearIcon: true,
            margin: '10 0 10 0'
        },
        {
            xtype: 'button',
            text: 'Log In',
            ui: 'confirm',
            id: 'btnLogin',
            margin: '10 0 10 0'
        },
        {
            xtype: 'button',
            text: 'Registrer',
            ui: 'confirm',
            id: 'btnRegisterView',
            margin: '10 0 10 0'
        }]
    }
});